package com.memento.game.self;

public class Client {
    public static void main(String[] args) {
        RaceCar raceCar = new RaceCar();
        raceCar.defence=100;
        raceCar.attack=100;
        System.out.println("-------------最初始的状态-------------");
        raceCar.display();
        Inventory inventory = new Inventory();
        inventory.setRecord(raceCar.saveRecord());
        System.out.println("---------------大战之后---------------");
        raceCar.defence=50;
        raceCar.attack=50;
        raceCar.display();
        System.out.println("--------------充值之后----------------");
        raceCar.getStateFromRecord(inventory.getRecord());
        raceCar.display();
    }
}
